﻿namespace DFGK_WMS.Model.Wcs
{
    /// <summary>
    /// 任务接收接口
    /// </summary>
    public class TaskAccept
    {
        /// <summary>
        /// 同组代表托盘有先后顺序关系
        /// </summary>
        public string GroupId { get; set; }

        /// <summary>
        /// 下发时间
        /// </summary>
        public string MsgTime { get; set; }

        /// <summary>
        /// 此组任务优先级，不填则按照“ msgTime ” 执行，并且优先级自动最低
        /// </summary>
        public int? PriorityCode { get; set; }

        /// <summary>
        /// 仓库编码 WMS 确定
        /// </summary>
        public string Warehouse { get; set; }

        /// <summary>
        /// 任务
        /// </summary>
        public List<Tasks> tasks { get; set; }
    }

    public class Tasks
    {
        /// <summary>
        /// 任务号唯一  生成Guid
        /// </summary>
        public string TaskId { get; set; }

        /// <summary>
        /// 任务类型 0入库 1出库 2移库
        /// </summary>
        public int TaskType { get; set; }

        /// <summary>
        /// 入库任务起点是站点，出库任务;起点是货位
        /// </summary>
        public string StartNode { get; set; }

        /// <summary>
        /// 任务终点是货位或者指定库口时必填
        /// </summary>
        public string EndNode { get; set; }

        /// <summary>
        /// 需要速锐自行选库口时必填
        /// </summary>
        public List<string>? EndNodes { get; set; }

        /// <summary>
        /// 托盘码
        /// </summary>
        public string? BarCode { get; set; }

        /// <summary>
        /// 同组任务的执行顺序, 同组不可重复 数值小在前，大的在后
        /// </summary>
        public int Order { get; set; }
    }
}
